<?php

namespace EasyVote\EasyVoteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Model as ORMBehaviors;


/**
 * Department
 * Stores the departments in the university
 * @ORM\Entity(repositoryClass="EasyVote\EasyVoteBundle\Repository\DepartmentRepository")
 */
class Department implements ORMBehaviors\Tree\NodeInterface
{
    use ORMBehaviors\Tree\Node;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="NONE")
     */
    protected $id;

    /**
     * Set id
     *
     * @param integer
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * The name of the department
     * @var string
     * @ORM\Column(name="name", type="string")
     */
    private $name;

    /**
     * More information on the department
     * @var string
     * @ORM\Column(name="description", type="text")
     */
    private $description;

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param string $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }
}
